employees = {
    101: {
        "name": "Alice",
        "age": 30,
        "gender": "Female",
        "position": "Data Scientist",
        "team": "Research",
        "salary_history": [70000, 80000, 90000]
    },
    # 更多员工数据...
}
# 1.新增一个员工的信息到`employees`字典中。
# employees.update({102: {"name": "limo",
#                         "age": 29,
#                         "gender": "Male",
#                         "position": "Data Scientist",
#                         "team": "Research",
#                         "salary_history": [8000, 9000, 10000]
#                         }
#                   })
# print(employees)
# 2删除一个指定的员工的信息。
# del employees[101]
# print(employees)
# 3更新员工101的年龄至31。
# employees[101]['age']=31
# print(employees)
# 4. 增加员工101薪资历史中的最新薪资至95000。
# employees[101]['salary_history'].append(95000)
# print(employees)
# 5. 计算员工101的平均薪资。
# count=0
# for i in employees[101]["salary_history"]:
#     count=count+i
#     i=i+1
# print(count)
# 6. 找出所有年龄大于25岁的员工的姓名和ID。
# employees[101]['age']>25
# print(employees[101]['name'])
# 7. 对`employees`中的每个员工，添加'bonus'键至其字典中，
# 其中值是最新薪资的10%。
# c=employees[101]['salary_history'][-1]
# employees[101]['bonus']=10%c
# print(employees)
# 8. 将员工101的职位更新为"Senior Data Scientist"。
# employees[101]['position'] = "Senior Data Scientist"
# print(employees)
# 9. 从员工的信息中移除`gender`键。
# employees[101].pop('gender')
# print(employees)
# 10. 创建一个新的嵌套字典，该字典仅包含员工的`name`和`position`。
# new_employees = employees.copy()
# employees[103]=new_employees
# print(employees)
